package ru.spb.osll.myfit.client.service;

import ru.spb.osll.myfit.common.Page;
import ru.spb.osll.myfit.common.VerificationResult;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>FitService</code>.
 * 
 * @author kua
 */
public interface FitServiceAsync {

 
  void loadPage(String path, AsyncCallback<VerificationResult> callback);

  void savePage(String path, Page page, AsyncCallback<Object> callback);

  /**
   * Get the path to current content.txt
   * 
   * @return - callback
   */
  public void getPagePath(AsyncCallback<String> callback);

  public void loadPageFromTestResultsDirectory(String pagePath, String pageId, AsyncCallback<Page> callback);
  
  public void verifyPage(Page page, AsyncCallback<VerificationResult> callback);
}
